use std::thread::sleep;
use std::time::Duration;
use futures::executor::block_on;

async fn hello_world(){
    println!("先sleep5秒钟");
    let times = Duration::new(5,0);
    sleep(times);
    println!("Hello World!");
    println!("再sleep5秒钟");
    sleep(times);
    println!("bye");
}

fn main() {
    let future = hello_world();
    block_on(future);
}
